package service;

import domain.cms.AbstractPage;
import domain.shop.Product;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Interface for fulltext search
 */
public interface Searcher {

    @SuppressWarnings("unchecked")
    @Transactional(readOnly = true)
    List<? extends AbstractPage> search(String fulltextQuery);

    @Transactional(readOnly = true)
    List<Product> searchProducts(String fulltextQuery);
}
